#ifndef ___CLIENT___
#define ___CLIENT___
#include <func.h>

typedef struct train_s {
    int length;
    char data[1000];                                                      
} train_t;

int client_worker(int netfd,char *buf);
int worker_printf(int netfd);
int worker_puts_client(int netfd, char *filename);
int worker_gets_client(int netfd);
int recvn(int sockfd,void *buf, int length);
int c_regist(int sfd);
int c_login(int sockfd, int *isLogin);

#endif